<script lang="ts">
import AppNav from "@/components/AppNav.vue";

export default {
name: "App",
  components: {AppNav},
  data(){
    return{
      hideNav:['login','notfound'],
      isShow:true
    }
  },
  updated() {
    this.isShow = !this.hideNav.includes(this.$route.name)
  }
}
</script>

<template>
  <div>
<!--    <AppNav v-if="!$route.meta.hideNav"></AppNav>-->
    <AppNav v-if="isShow"></AppNav>
    <router-view></router-view>
  </div>
</template>

<style scoped lang="less">

</style>
